<script>
function Parent(){}
function Child(a, b){
    this.b = b
    Parent.call(this, a)
}

Child.prototype = Object.create(Parent.prototype)
Child.prototype.constructor = Child
Child.super = Parent
Child.__proto__ = Parent //继承静态属性

</script>